package com.xiangshizhineng.tianzhangzhi.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiangshizhineng.tianzhangzhi.app.dao.TaskHistoryDAO;
import com.xiangshizhineng.tianzhangzhi.app.mapper.TaskHistoryMapper;
import com.xiangshizhineng.tianzhangzhi.app.model.response.TaskHistoryResponse;
import com.xiangshizhineng.tianzhangzhi.app.service.TaskHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TaskHistoryServiceImpl extends ServiceImpl<TaskHistoryMapper, TaskHistoryResponse> implements TaskHistoryService {

    @Autowired
    TaskHistoryDAO taskHistoryDAO;

    @Override
    public IPage<TaskHistoryResponse> selectHistoryByProduction(Page page, Wrapper<TaskHistoryResponse> taskHistoryWrapper) {
        return taskHistoryDAO.selectHistoryByProduction(page,taskHistoryWrapper);
    }
}
